package com.cn.pojo;

import java.util.*;

public class CarFour {
    private String carName;
    private Chair carChair;
    private String[] carBrand;
    private List<String> carBrand2;
    private Set<String> carBrand3;
    private Map<String,Double> carPrice;
    private Properties crPrice2;

    public CarFour(){
        System.out.println("使用无参构造器创建对象");
    }

    public CarFour(String carName, Chair carChair, String[] carBrand, List<String> carBrand2, Set<String> carBrand3, Map<String, Double> carPrice, Properties crPrice2) {
        System.out.println("使用有参构造方法创建car");
        this.carName = carName;
        this.carChair = carChair;
        this.carBrand = carBrand;
        this.carBrand2 = carBrand2;
        this.carBrand3 = carBrand3;
        this.carPrice = carPrice;
        this.crPrice2 = crPrice2;
    }

    @Override
    public String toString() {
        return "CarFour{" +
                "carName='" + carName + '\'' +
                ", carChair=" + carChair +
                ", carBrand=" + Arrays.toString(carBrand) +
                ", carBrand2=" + carBrand2 +
                ", carBrand3=" + carBrand3 +
                ", carPrice=" + carPrice +
                ", crPrice2=" + crPrice2 +
                '}';
    }
}
